package com.example.layui.controller;

import com.example.layui.entity.Menu;
import com.example.layui.service.MenuService;
import com.example.layui.vo.MenuVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RequestMapping("/menu")
@RestController
public class MenuController {
    @Resource
    private MenuService menuService;
    @RequestMapping("")
    public String index(){
        List<Menu> map = menuService.selectMenu();
        return "menu";
    }
}
